package game;

import java.awt.geom.Point2D;

class SceneManager
{
    static public SCENE currentScene;
    static public Scene scene = null;
 
	static public void setup()
	{
		Camera.getInstance().SetWorldPosition(new Point2D.Double(0,0));
		//SoundClip.getInstance().LoadSongs();
		Audios.getInstance().loadSongs();
		LoadImages.getInstance().Load();
		SceneManager.scene = new LoaderFile();
		SceneManager.currentScene = SCENE.SCN_OPENING;
	}

	static public void changeScene(int currentScene)
	{
		Audios.getInstance().stopAll();
		
		switch (currentScene)
		{
			case 0:
				SceneManager.scene = new Menu();
				SceneManager.currentScene = SCENE.SCN_MENU;
				break;
						
			case 1:
				SceneManager.scene = new Credits();
				SceneManager.currentScene = SCENE.SCN_MENU_CREDIT;
				break;
				
		
			case 2:
				SceneManager.scene = new Opening();
				SceneManager.currentScene = SCENE.SCN_OPENING;
				break;

			case 3:
				SceneManager.scene = new GameOver();
				SceneManager.currentScene = SCENE.SCN_GAMEOVER;
				break;				
			case 4:
				SceneManager.scene = new Congrats();
				SceneManager.currentScene = SCENE.SCN_CONGRATS;
				break;
			case 5:
				SceneManager.scene = new Level_1();
				SceneManager.currentScene = SCENE.SCN_LEVEL_01;
				break;
			case 6:
				SceneManager.scene = new Level_2();
				SceneManager.currentScene = SCENE.SCN_LEVEL_02;
				break;
			case 7:
				SceneManager.scene = new Level_3();
				SceneManager.currentScene = SCENE.SCN_LEVEL_03;
				break;
			case 8:
				SceneManager.scene = new Level_4();
				SceneManager.currentScene = SCENE.SCN_LEVEL_04;
				break;
			case 9:
				SceneManager.scene = new Level_5();
				SceneManager.currentScene = SCENE.SCN_LEVEL_05;
				break;
		}
	}
	public static enum SCENE
	{
		SCN_OPENING,
		SCN_MENU,
		SCN_GAMEOVER,
		SCN_LEVEL_01,
		SCN_LEVEL_02,
		SCN_LEVEL_03,
		SCN_LEVEL_04,
		SCN_LEVEL_05,
		SCN_CONGRATS,
		SCN_MENU_CREDIT,
		SCN_LEVEL,
	}	
}
